$OpenBSD: patch-libsrc_Wi_openxml_sql,v 1.1.1.1 2013/04/22 17:32:31 zhuk Exp $
--- libsrc/Wi/openxml.sql.orig	Tue Oct 25 02:59:49 2011
+++ libsrc/Wi/openxml.sql	Tue Oct 25 03:00:14 2011
@@ -46,7 +46,7 @@ DB.DBA.OPENXML_DEFINE (in vname varchar, in tb varchar
 
   if (tb is not null and exists (select 1 from DB.DBA.SYS_KEYS where KEY_TABLE = tb))
     {
-      if (not exists (select 1 from SYS_COLS where \TABLE = tb and \COLUMN = data))
+      if (not exists (select 1 from SYS_COLS where TABLE = tb and COLUMN = data))
 	signal ('42S22', 'The data column does not exist', 'XV005');
       mod := 1;
     }
@@ -89,9 +89,9 @@ DB.DBA.OPENXML_DEFINE (in vname varchar, in tb varchar
       else
 	{
           declare ctype varchar;
-	  if (tb is not null and not exists (select 1 from SYS_COLS where \TABLE = tb and \COLUMN = elm[0]))
+	  if (tb is not null and not exists (select 1 from SYS_COLS where TABLE = tb and COLUMN = elm[0]))
 	    signal ('42S22', 'The column does not exist', 'XV005');
-	  select dv_type_title (COL_DTP) into ctype from SYS_COLS where \TABLE = tb and \COLUMN = elm[0];
+	  select dv_type_title (COL_DTP) into ctype from SYS_COLS where TABLE = tb and COLUMN = elm[0];
 	  cols := concat (cols, sprintf ('%s %s,', elm[0], ctype));
           tcols := concat (tcols, elm [0], ',');
 	}
